package com.bmps.springcloud.insuredmicroservice.service.calculate;

import com.bmps.springcloud.insuredmicroservice.model.accept.LcPolModel;
import org.apache.commons.lang3.StringUtils;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * description:
 * 未成年人死亡责任
 *
 * @author jackdaw
 * @date 2019-12-24 17:27
 */
public class MinorCalculate {



    private double calculateMinorDeath(List<LcPolModel> polEntities) {
        double Amount = 0;
        Set<String> contNos = new HashSet<>(polEntities.size());
        //获取需要计算账户价值的保单
        for (LcPolModel polEntity : polEntities) {
            String riskCode = polEntity.getRiskCode();
            if ("LBU009".equals(riskCode)
                    || "LBU008".equals(riskCode)
                    || "LBV009".equals(riskCode)
                    || "LBU010".equals(riskCode)
                    || "LBU013".equals(riskCode)
                    || "LBU012".equals(riskCode)
                    || "LBU011".equals(riskCode)
                    || "LBU015".equals(riskCode)
                    || "LBU016".equals(riskCode)
                    || "LBV008".equals(riskCode)
                    || "LBV009".equals(riskCode)
                    || "LBV010".equals(riskCode)
                    || "LBV011".equals(riskCode)
                    || "LBU017".equals(riskCode)
                    || "LBU018".equals(riskCode)
                    || "LBU021".equals(riskCode)
                    || "LBU020".equals(riskCode)

            ) {

            }
        }

        return Amount;
    }

    public static void main(String[] args) {
        List<LcPolModel> list = new ArrayList<>(10);
        System.out.println(list.size());
        for (LcPolModel lcPolModel : list) {
            System.out.println(lcPolModel.getAmnt());
        }
        System.out.println("判断是否" + CollectionUtils.isEmpty(list));
    }
}
